Git |
您所在的位置:网站首页 › git 克隆慢 › Git |
Fastgithub
github加速神器,解决github打不开、用户头像无法加载、releases无法上传下载、git-clone、git-pull、git-push失败等问题。 https://github.com/dotnetcore/FastGithub 使用国内镜像网站目前已知Github国内镜像网站有github.com.cnpmjs.org。只需要在clone某个项目的时候将github.com替换为github.com.cnpmjs.org即可实现加速下载。如下例: github.com: git clone https://github.com/xmy0916/EuroTruckSelfDriver.git龟速下载,实锤了。 github.com.cnpmjs.org: git clone https://github.com.cnpmjs.org/xmy0916/EuroTruckSelfDriver.git可以发现,使用国内镜像站速度飞快! 虽然成功下载飞快,但是又遇见了下载失败的问题! 问题尝试过增加git缓冲区大小,扩大了8倍依然报错(因为博主下的文件在1.5G左右,所以可能过大所以失败,git clone较小一些文件的同学可以尝试使用该方法解决): git config --global http.postBuffer 524288000 git config --list 方法二:(亲测成功)浅层克隆,深度设置为1: git clone http://github.com/target.git --depth 1 # target.git 为目标地址 cd target git fetch --unshallow成功截图: 参考文章: 使用国内镜像网站解决github clone速度慢问题git clone资源获取失败解决办法 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |